<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/4/21
  Time: 13:45
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%
    pageContext.setAttribute("path", request.getContextPath());
%>
<html>
<head>
    <title>Worker列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://cdn.bootcss.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="http://cdn.bootcss.com/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet"/>
    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

    <script language="javascript">


        $(document).ready(function(){
            alert(${requestScope.get("paixu_query_type")})
        });
        function del() {
            $("#paixu_query_type option[value='paixuSelectByName']").prop("selected","selected");
           alert("asda");
        }

        function shengxu(){
            sessionStorage.clear();
            sessionStorage.setItem("paixu","0");
        }

        function jiangxu(){
            sessionStorage.clear();
            sessionStorage.setItem("paixu","1");
        }

    </script>
</head>
<body>

<form action="#">
    <select name="paixu_query_type" id="paixu_query_type">
        <option value="paixuSelectById" name="paixuIdQuery">按id</option>
        <option value="paixuSelectByName" name="paixuNameQuery">按姓名</option>
        <option value="paixuSelectByWorkage" name="paixuWorkageQuery">按工龄</option>
    </select>
    <input type="submit" name="up" value="up" >
    <input type="submit" name="down" value="down">
    <button onclick="del()"> oo</button>
</form>
</body>
</html>
